Package-level declarations

Types

Link copied to clipboard

A subset of selective node batch contexts that share a selection-derived key.

Functions

Link copied to clipboard
suspend fun <T : NodeObject, C : SelectiveNodeExecutionContext<T>, K> batchByCustomGrouping(contexts: List<C>, groupBy: (SelectionSet<T>) -> K, resolve: suspend (Group<T, C, K>) -> Map<C, FieldValue<T>>): Map<C, FieldValue<T>>

Partitions contexts by a tenant-defined key derived from each context's selection set.

Link copied to clipboard
suspend fun <T : NodeObject, C : SelectiveNodeExecutionContext<T>> batchByOwnFields(contexts: List<C>, resolve: suspend (Group<T, C, Set<FieldCoordinate>>) -> Map<C, FieldValue<T>>): Map<C, FieldValue<T>>

Partitions contexts by the fields selected directly on the node and invokes resolve once for each group.

Link copied to clipboard
suspend fun <T : NodeObject, C : SelectiveNodeExecutionContext<T>> batchBySameSelection(contexts: List<C>, resolve: suspend (Group<T, C, SelectionSet<T>>) -> Map<C, FieldValue<T>>): Map<C, FieldValue<T>>

Partitions contexts by structurally equal complete selection sets and invokes resolve once for each group.

Link copied to clipboard

Returns a read-only selection view with any-member semantics over this non-empty context list.